package name.as3.simpleUIComponents.defaultSkins
{
import flash.display.DisplayObject;
import flash.geom.Point;
import flash.text.TextFormat;

import name.as3.simpleUIComponents.core.SimpleSprite;
import name.as3.simpleUIComponents.interfaces.skins.ISimpleAlertFormSkin;
import name.as3.simpleUIComponents.types.Size;

public class DefaultSimpleAlertFormSkin extends SimpleSprite implements ISimpleAlertFormSkin
{
	/**
	 *
	 */
	public function DefaultSimpleAlertFormSkin()
	{
		super();
	}
//==================================================================================================
// public
//==================================================================================================
	override public function setSize(nW:Number, nH:Number):void
	{
		graphics.clear();
		graphics.beginFill(0x00ff88, .8);
		graphics.drawRoundRect(0, 0, nW, nH, 8, 8);
		graphics.endFill();
	}
//==================================================================================================
// public interfaces
//==================================================================================================
	public function get backgroundImage():DisplayObject
	{
		return this;
	}
	
	public function get background4Cancel():DisplayObject
	{
		return null;
	}
	public function get defaultTextFormat():TextFormat
	{
		return new TextFormat("宋体");
	}
	public function get okButtonText():String
	{
		return "确定";
	}
	public function get cancelButtonText():String
	{
		return "取消";
	}
	
	public function get defaultSize():Size
	{
		return new Size(300, 180);
	}
	
	public function get okButtonSize():Size
	{
		return new Size(80, 20);
	}
	
	public function get okButtonSize4Cancel():Size
	{
		return new Size(80, 20);
	}
	
	public function get cancelButtonSize():Size
	{
		return new Size(80, 20);
	}
	
	public function get textPosition():Point
	{
		return new Point(18, 30);
	}
	
	public function get buttonDistance():int
	{
		return 8;
	}
	
	public function get buttonOffsetX():int
	{
		return 0;
	}
	
	public function get buttonBottonMargin():int
	{
		return 28;
	}
}
}